package com.yxw.yxnet_cd_center.customer_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yxw.yxnet_cd_center.customer_service.dto.DataGroupQueryDTO;
import com.yxw.yxnet_cd_center.customer_service.entity.YxCsDataGroupEntity;
import com.yxw.yxnet_cd_center.customer_service.vo.DataGroupVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 大数据分组Mapper接口
 *
 * @author xiexuxin
 * @date 2023-09-14
 */
@Repository
public interface DataGroupMapper extends BaseMapper<YxCsDataGroupEntity> {

    /**
     * 查询大数据分组列表
     */
    List<DataGroupVO> dateGroupList();

    /**
     * 条件查询列表数据
     * @param page
     * @param dto
     * @return
     */
    List<DataGroupVO> getDataGroupByCondition(Page<DataGroupVO> page, @Param("dto") DataGroupQueryDTO dto);

    /**
     * 根据标签id查询对应客户
     * @param page
     * @param tagId
     * @return
     */
    List<DataGroupVO> getDataGroupByTag(Page<DataGroupVO> page,@Param("tagId") Long tagId);
}
